package number

func InRange(number, start, end N) bool {
	if start > end {
		start, end = end, start
	}
	return number >= start && number < end
}
